import request from '@/utils/request'

export function getLogInfo(
  username: string,
  logType: string,
  logBeginTime: string,
  logEndTime: string,
  pageSize: number,
  page: number
) {
  return request({
    url:
      '/log/getLogInfo?username=' +
      username +
      '&logType=' +
      logType +
      '&logBeginTime=' +
      logBeginTime +
      '&logEndTime=' +
      logEndTime +
      '&pageSize=' +
      pageSize +
      '&page=' +
      page,
    method: 'get'
  })
}

export function deleteLogByIds(logIds: number[]) {
  return request({
    url: '/log/deleteLogById/' + logIds,
    method: 'delete'
  })
}

export function getAllLog() {
  return request({
    url: '/log/getAllLog',
    method: 'get'
  })
}
